/* 
  App > List + Edit + Means
  Login
  Register
  History模式 -- BrowserRouter
  Hash模式 -- HashRouter
*/
import App from "../App"
import List from "../page/List"
import Edit from "../page/Edit"
import Means from "../page/Means"
import Login from "../page/Login"
import Register from "../page/Register"
import {BrowserRouter as Router, Routes, Route, Navigate} from 'react-router-dom'
const BaseRouter = () => (
  <Router>
    <Routes>
      <Route path="/" element={<App/>}>
        <Route path="/list" element={<List/>}></Route>
        <Route path="/edit" element={<Edit/>}></Route>
        <Route path="/edit/:id" element={<Edit/>}></Route>
        <Route path="/means" element={<Means/>}></Route>
      </Route>
      <Route path="/login" element={<Login/>}></Route>
      <Route path="/register" element={<Register/>}></Route>
    </Routes>
  </Router>
)

export default BaseRouter